package com.xuecx.userclient.controller;

import com.xuecx.userclient.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:xuecx
 * @CreateDate: 2019/7/27.
 * @QQ:1276162287
 * @Discription:
 */
@RestController
@RequestMapping("userFeign")
public class UserFeignController {

    @Autowired
    private UserService userService;


    @RequestMapping(value = "/get/{str}", method = RequestMethod.GET)
    public String echo(@PathVariable String str) {
        return userService.hello(str);
    }
}
